import nodata from '@/components/nodata/nodata.vue';
	import fromItem from '@/components/from-item/from-item.vue';
	export default {
		data() {
			return {

				lrCheckSample: {}, //基础信息
				fileList: [],
				Inv: 0,
			};
		},
		onShow() {},
		onLoad(options) {
			this.getLocalData()
			var that = this;
			
			
			
			uni.getStorage({
				key: 'userInfo',
				success: function(res) {
					that.userInfo = JSON.parse(res.data)
			
					var data = JSON.parse(res.data)
					if (options.id) {
						
						that.getDetailData({
							fId: options.id,
							fCompanyid: that.userInfo.companyId
						});
					}
				}
			})
		},
		components: {
			fromItem,
		},

		onReady() {},
		onUnload() {},
		methods: {
			pdfPage(name, url) {
				var aa = url;
				let links = encodeURIComponent(aa);
				uni.navigateTo({
					url: '/pages/apply/pdf?links=' + links + '&names=' + name
				});
			},
			getLocalData() {
				var that = this
				uni.getStorage({
					key: 'userInfo',
					success: function(res) {
						that.userInfo = JSON.parse(res.data)
					}
				})

			},
			getDetailData(datas) {
				var that = this;
				that.$http.getJobbriefingdataByfId(datas).then(res => {
					if (res.errcode == 0) {
						var data = res.data.yjQmpMsJobbriefingdata;
						this.lrCheckSample = data
						this.fileList = res.data.fAnnexlist
					}
				});
			},
			callback() {}
		}
	};